﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace DIProject
{
    public partial class frmPswd : Form
    {
        public frmPswd()
        {
            InitializeComponent();
        }
        public string Password
        {
            get
            {
                return tbPswd.Text;
            }
        }

        private void tbPswd_Enter(object sender, EventArgs e)
        {
           // this.DialogResult = DialogResult.OK;
        }

        private void frmPswd_FormClosing(object sender, FormClosingEventArgs e)
        {
           // this.DialogResult = DialogResult.Cancel;
        }

        private void tbPswd_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Enter)
            {
                this.DialogResult = DialogResult.OK;
            }
        }
    }
}